﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Brushes.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <Style x:Key="AcceptButton" TargetType="{x:Type Button}">
       	<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Background" Value="#FF17B816"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Border Name="back" 
						Background="{TemplateBinding Background}"
						CornerRadius="3"
						BorderThickness="1">
						<Border.BorderBrush>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF000000" Offset="0.54"/>
								<GradientStop Color="#FF878787" Offset="1"/>
								<GradientStop Color="#FF919191" Offset="0"/>
							</LinearGradientBrush>
						</Border.BorderBrush>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*"/>
									<RowDefinition Height="0.5*"/>
								</Grid.RowDefinitions>
								<Grid Name="Glow" Grid.RowSpan="2" Opacity="0">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="0.5*"/>
										<ColumnDefinition Width="0.5*"/>
									</Grid.ColumnDefinitions>
									<ContentPresenter Grid.ColumnSpan="2"
								 		HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
								 		VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
									<Border Name="GlowLeft"
										CornerRadius="3,3,0,0"
										Grid.Column="0">
										<Border.Background>
											<RadialGradientBrush Center="0.7,0.7">
												<GradientStop Color="#50FFFFFF" Offset="0"/>
												<GradientStop Color="#22FFFFFF" Offset="1"/>
											</RadialGradientBrush>
										</Border.Background>
									</Border>
									<Border Name="GlowRight"
										CornerRadius="0,0,3,3"
										Grid.Column="1">
										<Border.Background>
											<RadialGradientBrush Center="0.3,0.7">
												<GradientStop Color="#50FFFFFF" Offset="0"/>
												<GradientStop Color="#22FFFFFF" Offset="1"/>
											</RadialGradientBrush>
										</Border.Background>										</Border>
									</Grid>
								<Border Name="PressedBackground" 
									Background="#00777777" 
									BorderBrush="#FF444444"
									BorderThickness="1"
									CornerRadius="3"
									Opacity="0" Grid.RowSpan="2">
								</Border>
								<ContentPresenter Grid.RowSpan="2"
								 		HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
									 	VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
								<Border Name="shineTop"
										CornerRadius="3,3,0,0"
										Grid.Row="0">
								<Border.Background>
									<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
										<GradientStop Color="#77FFFFFF" Offset="0"/>
										<GradientStop Color="#55FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Name="shineBottom"
									CornerRadius="0,0,3,3"
									Grid.Row="1">
								<Border.Background>
									<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
										<GradientStop Color="#35FFFFFF" Offset="0"/>
										<GradientStop Color="#11FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Glow" Property="Opacity" Value="1"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="PressedBackground" Property="Opacity" Value="01"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
    </Style>

    <Style x:Key="CancelButton" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Background" Value="#FFDB1C11"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Border Name="back" 
						Background="{TemplateBinding Background}"
						CornerRadius="3"
						BorderThickness="1">
						<Border.BorderBrush>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF000000" Offset="0.54"/>
								<GradientStop Color="#FF878787" Offset="1"/>
								<GradientStop Color="#FF919191" Offset="0"/>
							</LinearGradientBrush>
						</Border.BorderBrush>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*"/>
									<RowDefinition Height="0.5*"/>
								</Grid.RowDefinitions>
								<Grid Name="Glow" Grid.RowSpan="2" Opacity="0">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="0.5*"/>
										<ColumnDefinition Width="0.5*"/>
									</Grid.ColumnDefinitions>
									<ContentPresenter Grid.ColumnSpan="2"
								 		HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
								 		VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
									<Border Name="GlowLeft"
										CornerRadius="3,3,0,0"
										Grid.Column="0">
										<Border.Background>
											<RadialGradientBrush Center="0.7,0.7">
												<GradientStop Color="#50FFFFFF" Offset="0"/>
												<GradientStop Color="#22FFFFFF" Offset="1"/>
											</RadialGradientBrush>
										</Border.Background>
									</Border>
									<Border Name="GlowRight"
										CornerRadius="0,0,3,3"
										Grid.Column="1">
										<Border.Background>
											<RadialGradientBrush Center="0.3,0.7">
												<GradientStop Color="#50FFFFFF" Offset="0"/>
												<GradientStop Color="#22FFFFFF" Offset="1"/>
											</RadialGradientBrush>
										</Border.Background>										</Border>
									</Grid>
								<Border Name="PressedBackground" 
									Background="#00777777" 
									BorderBrush="#FF444444"
									BorderThickness="1"
									CornerRadius="3"
									Opacity="0" Grid.RowSpan="2">
								</Border>
								<ContentPresenter Grid.RowSpan="2"
								 		HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
									 	VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
								<Border Name="shineTop"
										CornerRadius="3,3,0,0"
										Grid.Row="0">
								<Border.Background>
									<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
										<GradientStop Color="#77FFFFFF" Offset="0"/>
										<GradientStop Color="#55FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Name="shineBottom"
									CornerRadius="0,0,3,3"
									Grid.Row="1">
								<Border.Background>
									<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
										<GradientStop Color="#35FFFFFF" Offset="0"/>
										<GradientStop Color="#11FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Glow" Property="Opacity" Value="1"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="PressedBackground" Property="Opacity" Value="01"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
    </Style>

    <Style x:Key="CloseControlButton" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Timeline1">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.6"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="Timeline2">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" Background="#FFA08080" BorderBrush="Gray" BorderThickness="1,0,1,1" CornerRadius="0,0,4,1">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border Opacity="1" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="0,0,4,1">
                                <Border.Background>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="-0.368" Y="-0.152"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="Red" Offset="0"/>
                                        <GradientStop Color="#55FF8888" Offset="1"/>
                                    </RadialGradientBrush>
                                </Border.Background>
                            </Border>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                            <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="0,0,4,1">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
                            <Setter Property="Background" TargetName="border" Value="#CCAB0000"/>
                            <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" TargetName="border" Value="#FFE2E2E2"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButton" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Timeline1">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="back" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="Timeline2">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="back" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" Background="Transparent" BorderBrush="Gray" BorderThickness="1,0,0,1" CornerRadius="0,0,1,1">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="back" Background="#FF909090" Grid.RowSpan="2"/>
                            <Border Opacity="1" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="0,0,1,1">
                                <Border.Background>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="-0.368" Y="-0.152"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FF6AC1FD" Offset="0"/>
                                        <GradientStop Color="#557888F5" Offset="1"/>
                                    </RadialGradientBrush>
                                </Border.Background>
                            </Border>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                            <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="0,0,1,1">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
                            <Setter Property="Background" TargetName="border" Value="#FF0070BE"/>
                            <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">

                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="RightNavigationButton" TargetType="{x:Type Button}">
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="SnapsToDevicePixels" Value="True"/>
		<Setter Property="Background" Value="#557888F5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Timeline1">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="back" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"  Storyboard.TargetProperty="(FontSize)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="14"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="Timeline2">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="back" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
								</DoubleAnimationUsingKeyFrames>
								<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"  Storyboard.TargetProperty="(FontSize)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="12"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" 
							Background="Transparent" 
							BorderBrush="Gray" 
							CornerRadius="0,8,8,0"
							BorderThickness="{TemplateBinding BorderThickness}"
							SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Grid SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="back"
									Background="{TemplateBinding Background}"
									Grid.RowSpan="2"
									SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
									CornerRadius="0,8,8,0"/>
                            <Border CornerRadius="0,8,8,0"
									Grid.RowSpan="2"
									x:Name="PressedBack"
									Opacity="0">
								<Border.Background>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                            	<ScaleTransform ScaleX="5" ScaleY="3"/>
                            	           	<TranslateTransform X="-3" Y="-1"/>
                                  		 </TransformGroup>
                                  		</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#EE000B57" Offset="0"/>
										<GradientStop Offset="0.616" Color="#557888F5"/>
									</RadialGradientBrush>
								</Border.Background>
							</Border>
                            <ContentPresenter HorizontalAlignment="Center" 
												VerticalAlignment="Center" 
												Width="Auto" 
												Grid.RowSpan="2"
												SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            <Border HorizontalAlignment="Stretch" 
									Margin="0,0,0,0" 
									CornerRadius="0,8,8,0"
									x:Name="shine" 
									Width="Auto"
									SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="PressedBack" Value="1"/>
							<Setter Property="BorderThickness" TargetName="border" Value="1,0,0,0"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline2}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
	
	<Style x:Key="LeftNavigationButton" TargetType="{x:Type Button}">
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="SnapsToDevicePixels" Value="True"/>
		<Setter Property="Background" Value="#557888F5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Timeline1">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="back" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"  Storyboard.TargetProperty="(FontSize)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="14"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="Timeline2">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="back" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
								</DoubleAnimationUsingKeyFrames>
								<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"  Storyboard.TargetProperty="(FontSize)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="12"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" 
							Background="Transparent" 
							BorderBrush="Gray" 
							BorderThickness="{TemplateBinding BorderThickness}"
							SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
							CornerRadius="8,0,0,8">
                        <Grid SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="back" 
									Background="{TemplateBinding Background}" 
									Grid.RowSpan="2"
									SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
									CornerRadius="8,0,0,8"/>
                            <Border CornerRadius="8,0,0,8"
									Grid.RowSpan="2"
									x:Name="PressedBack"
									Opacity="0">
								<Border.Background>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                            	<ScaleTransform ScaleX="5" ScaleY="3"/>
                            	           	<TranslateTransform X="-1.1" Y="-1"/>
                                  		 </TransformGroup>
                                  		</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#EE000B57" Offset="0"/>
										<GradientStop Offset="0.616" Color="#557888F5"/>
									</RadialGradientBrush>
								</Border.Background>
							</Border>
                            <ContentPresenter HorizontalAlignment="Center" 
												VerticalAlignment="Center" 
												Width="Auto" 
												Grid.RowSpan="2"
												SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            <Border HorizontalAlignment="Stretch" 
									Margin="0,0,0,0" 
									x:Name="shine" 
									Width="Auto"
									CornerRadius="8,0,0,8"
									SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="PressedBack" Value="1"/>
							<Setter Property="BorderThickness" TargetName="border" Value="0,0,1,0"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline2}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="MenuButton" TargetType="{x:Type RadioButton}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    	<Border Name="Back" BorderThickness="1,1,1,1" CornerRadius="5" Background="#FF869BFF">
							<Border.BorderBrush>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF7C7C7C" Offset="0.567"/>
									<GradientStop Color="#FFADADAD" Offset="1"/>
									<GradientStop Color="#FFB3B3B3" Offset="0"/>
								</LinearGradientBrush>
							</Border.BorderBrush>
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="0.5*"/>
								<RowDefinition Height="0.5*"/>
							</Grid.RowDefinitions>
							<Grid x:Name="Glow" Grid.RowSpan="2" Opacity="0">
								<Border HorizontalAlignment="Stretch">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.368" Y="0"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       		<GradientStop Color="#FF6AC1FD" Offset="0"/>
                                       		<GradientStop Color="#557888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
								<Border HorizontalAlignment="Stretch">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.28" Y="-1"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       		<GradientStop Color="#FF6AC1FD" Offset="0"/>
                                       		<GradientStop Color="#337888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
							</Grid>
							<Border Name="SelBack" Opacity="0" Grid.RowSpan="2"
									CornerRadius="5" HorizontalAlignment="Stretch" Background="Red"/>
							<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
							<Border Name="shineTop"
									CornerRadius="5,5,0,0"
									Grid.Row="0">
								<Border.Background>
									<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
										<GradientStop Color="#99FFFFFF" Offset="0"/>
										<GradientStop Color="#44FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Name="shineBottom"
									CornerRadius="0,0,5,5"
									Grid.Row="1">
								<Border.Background>
									<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
										<GradientStop Color="#40FFFFFF" Offset="0"/>
										<GradientStop Color="#18FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Glow" Property="Opacity" Value="1"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="Back" Property="Background" Value="#FF102588"/>
						</Trigger>
						<Trigger Property="IsChecked" Value="True">
							<Setter TargetName="SelBack" Property="Opacity" Value="1"/>
						</Trigger>
					</ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ParentsButton" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="MouseEnterAnim">
                            <DoubleAnimation Storyboard.TargetName="MouseOverGlowEfx"
                                             Storyboard.TargetProperty="GlowSize"
                                             From="0" To="4" Duration="00:00:00.3000000" />
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Ground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.0500000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="MouseExitAnim">                            
                                <DoubleAnimation Storyboard.TargetName="MouseOverGlowEfx"
                                             Storyboard.TargetProperty="GlowSize"
                                             From="4" To="0" Duration="00:00:00.3000000" />
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Ground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.0500000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" Background="White" BorderBrush="Gray" SnapsToDevicePixels="True" BorderThickness="1" CornerRadius="0">
                        <Border.BitmapEffect>
                            <BitmapEffectGroup>
                                <OuterGlowBitmapEffect x:Name="MouseOverGlowEfx" GlowColor="Gray" GlowSize="0"/>
                            </BitmapEffectGroup>
                        </Border.BitmapEffect>
                        <Grid>
                            <Border Name="Ground" Background="Orange" Opacity="0" SnapsToDevicePixels="True"/>
                            <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" SnapsToDevicePixels="True">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="1"/>
                                        <GradientStop Color="#33FFFFFF" Offset="0"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="BorderBrush" TargetName="border" Value="Gray"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseEnterAnim}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseExitAnim}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="SearchButton" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#FF787AEB"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border" 
                            Background="{TemplateBinding Background}"  
                            BorderThickness="1" 
                            CornerRadius="3"
							SnapsToDevicePixels="True">
                        <Border.BorderBrush>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFCCCCCC" Offset="0"/>
                                <GradientStop Color="#FF919191" Offset="0.987"/>
                            </LinearGradientBrush>
                        </Border.BorderBrush>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.52*"/>
                                <RowDefinition Height="0.48*"/>
                            </Grid.RowDefinitions>
                            <Border Grid.RowSpan="2">
                                <Border.Background>
                                    <RadialGradientBrush>
                                    </RadialGradientBrush>
                                </Border.Background>
                            </Border>
							<Grid x:Name="Glow" Grid.RowSpan="2" Opacity="0">
								<Border HorizontalAlignment="Stretch" CornerRadius="3" SnapsToDevicePixels="True">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.368" Y="0"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       		<GradientStop Color="#FF6AC1FD" Offset="0"/>
                                       		<GradientStop Color="#557888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
								<Border HorizontalAlignment="Stretch" CornerRadius="3" SnapsToDevicePixels="True">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.28" Y="-1"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       		<GradientStop Color="#FF6AC1FD" Offset="0"/>
                                       		<GradientStop Color="#337888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
							</Grid>
							<Border Name="SelBack" Opacity="0" Grid.RowSpan="2"
									CornerRadius="3" HorizontalAlignment="Stretch" Background="#FF182459" SnapsToDevicePixels="True"/>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                            <Border HorizontalAlignment="Stretch"
								x:Name="shineTop" Width="Auto" 
								CornerRadius="3,3,0,0">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#AAFFFFFF" Offset="0"/>
                                        <GradientStop Color="#55FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                            <Border HorizontalAlignment="Stretch" 
							x:Name="shineBottom" Width="Auto" 
							CornerRadius="0,0,3,3"
							Grid.Row = "2">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#40FFFFFF" Offset="0"/>
                                        <GradientStop Color="#55FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Glow" Property="Opacity" Value="1"/>
						</Trigger>
                        <Trigger Property="IsPressed" Value="True">
							<Setter TargetName="SelBack" Property="Opacity" Value="1"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="Black"/>
    </Style>

    <Style x:Key="AddRecButton" TargetType="{x:Type Button}">
	<Setter Property="Background" Value="#FF3281E2"/>
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
                <Border BorderThickness="1,1,1,1" CornerRadius="3" Background="{TemplateBinding Background}">
					<Border.BorderBrush>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF555555" Offset="0.545"/>
							<GradientStop Color="#FF888888" Offset="1"/>
							<GradientStop Color="#FFB5B5B5" Offset="0"/>
						</LinearGradientBrush>
					</Border.BorderBrush>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid x:Name="Glow" Grid.RowSpan="2" Opacity="0">
								<Border HorizontalAlignment="Stretch" CornerRadius="3">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.368" Y="0"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#FF7AC2FD" Offset="0"/>
                                       		<GradientStop Color="#557888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
								<Border HorizontalAlignment="Stretch" CornerRadius="3">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.28" Y="-1"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       			<GradientStop Color="#FF7AC2FD" Offset="0"/>
                                       			<GradientStop Color="#557888F5" Offset="1"/>
                                    		</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
							</Grid>
						<Border Name="SelBack" Opacity="0" Grid.RowSpan="2"
									CornerRadius="3" HorizontalAlignment="Stretch" Background="#FF182459"/>
						<Border Name="shineTop"
							CornerRadius="3,3,0,0"
							Grid.Row="0">
								<Border.Background>
				 				<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
		 							<GradientStop Color="#99FFFFFF" Offset="0"/>
									<GradientStop Color="#55FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Border Name="shineBottom"
							CornerRadius="0,0,3,3"
							Grid.Row="1">
							<Border.Background>
		 						<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
									<GradientStop Color="#40FFFFFF" Offset="0"/>
									<GradientStop Color="#18FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
					</Grid>
				</Border>
				<ControlTemplate.Triggers>
					<Trigger Property="IsMouseOver" Value="True">
						<Setter TargetName="Glow" Property="Opacity" Value="1"/>
					</Trigger>
					<Trigger Property="IsPressed" Value="True">
						<Setter TargetName="SelBack" Property="Opacity" Value="1"/>
					</Trigger>
				</ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    </Style>

    <Style x:Key="ViewRecButton" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#FF787AEB"/>
		<Setter Property="BorderBrush" Value="{StaticResource ListBoxItemBorderBrush}"/>
    	<Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
                <Border BorderThickness="1" CornerRadius="0,3,0,2" Background="{TemplateBinding Background}">
					<Border.BorderBrush>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF888888" Offset="0.545"/>
							<GradientStop Color="#FFAAAAAA" Offset="1"/>
							<GradientStop Color="#66B5B5B5" Offset="0"/>
						</LinearGradientBrush>
					</Border.BorderBrush>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid x:Name="Glow" Grid.RowSpan="2" Opacity="0">
								<Border HorizontalAlignment="Stretch" CornerRadius="0,3,0,0">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.368" Y="0"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#FF7AC2FD" Offset="0"/>
                                       		<GradientStop Color="#557888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
								<Border HorizontalAlignment="Stretch" CornerRadius="0,3,0,0">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.28" Y="-1"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       			<GradientStop Color="#FF7AC2FD" Offset="0"/>
                                       			<GradientStop Color="#557888F5" Offset="1"/>
                                    		</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
							</Grid>
						<Border Name="SelBack" Opacity="0" Grid.RowSpan="2"
									CornerRadius="0,3,0,2" HorizontalAlignment="Stretch" Background="#FF182459"/>
						<Border Name="shineTop"
							CornerRadius="0,3,0,0"
							Grid.Row="0">
								<Border.Background>
				 				<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
		 							<GradientStop Color="#99FFFFFF" Offset="0"/>
									<GradientStop Color="#55FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Border Name="shineBottom"
							CornerRadius="0"
							Grid.Row="1">
							<Border.Background>
		 						<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
									<GradientStop Color="#40FFFFFF" Offset="0"/>
									<GradientStop Color="#18FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
					</Grid>
				</Border>
				<ControlTemplate.Triggers>
					<Trigger Property="IsMouseOver" Value="True">
						<Setter TargetName="Glow" Property="Opacity" Value="1"/>
					</Trigger>
					<Trigger Property="IsPressed" Value="True">
						<Setter TargetName="SelBack" Property="Opacity" Value="1"/>
					</Trigger>
				</ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    </Style>

    <Style x:Key="DelRecButton" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#FFF02323"/>
		<Setter Property="BorderBrush" Value="{DynamicResource DefaultBorder}"/>
    	<Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
                <Border BorderThickness="1,1,1,1" CornerRadius="2,0,3,0" Background="{TemplateBinding Background}">
					<Border.BorderBrush>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF888888" Offset="0.455"/>
							<GradientStop Color="#FFAAAAAA" Offset="0"/>
							<GradientStop Color="#66B5B5B5" Offset="1"/>
						</LinearGradientBrush>
					</Border.BorderBrush>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid x:Name="Glow" Grid.RowSpan="2" Opacity="0">
								<Border HorizontalAlignment="Stretch" CornerRadius="0,0,3,0">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.368" Y="0"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
												<GradientStop Color="#FFFDA27A" Offset="0"/>
                                       			<GradientStop Color="#55F58878" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
								<Border HorizontalAlignment="Stretch" CornerRadius="0,0,3,0">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.28" Y="-1"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       			<GradientStop Color="#FFFDA27A" Offset="0"/>
                                       			<GradientStop Color="#55F58878" Offset="1"/>
                                    		</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
							</Grid>
						<Border Name="SelBack" Opacity="0" Grid.RowSpan="2"
									CornerRadius="2,0,3,0" HorizontalAlignment="Stretch" Background="#FFBB0C0C"/>
						<Border Name="shineTop"
							CornerRadius="0"
							Grid.Row="0">
							<Border.Background>
		 						<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
									<GradientStop Color="#10FFFFFF" Offset="1"/>
									<GradientStop Color="#60FFFFFF" Offset="0"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Border Name="shineBottom"
							CornerRadius="0,0,3,0"
							Grid.Row="1">
							<Border.Background>
				 				<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
		 							<GradientStop Color="#65FFFFFF" Offset="1"/>
									<GradientStop Color="#20FFFFFF" Offset="0"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
					</Grid>
				</Border>
				<ControlTemplate.Triggers>
					<Trigger Property="IsMouseOver" Value="True">
						<Setter TargetName="Glow" Property="Opacity" Value="1"/>
					</Trigger>
					<Trigger Property="IsPressed" Value="True">
						<Setter TargetName="SelBack" Property="Opacity" Value="1"/>
					</Trigger>
				</ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    </Style>
	
	<Style x:Key="ListBoxInlineButton" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#FF6561A9"/>
    	<Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
                <Border BorderThickness="1,1,1,1" CornerRadius="3" Background="{TemplateBinding Background}">
					<Border.BorderBrush>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF7C7C7C" Offset="0.567"/>
							<GradientStop Color="#FFADADAD" Offset="1"/>
							<GradientStop Color="#FFB3B3B3" Offset="0"/>
						</LinearGradientBrush>
					</Border.BorderBrush>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid x:Name="Glow" Grid.RowSpan="2" Opacity="0">
								<Border HorizontalAlignment="Stretch" CornerRadius="3">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.368" Y="0"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#FF7AC2FD" Offset="0"/>
                                       		<GradientStop Color="#557888F5" Offset="1"/>
                                    	</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
								<Border HorizontalAlignment="Stretch" CornerRadius="3">
                                	<Border.Background>
                                    	<RadialGradientBrush>
                                        	<RadialGradientBrush.RelativeTransform>
                                            	<TransformGroup>
                                                	<ScaleTransform ScaleX="1.702" ScaleY="2.123"/>
                                                	<SkewTransform AngleX="0" AngleY="0"/>
                                                	<RotateTransform Angle="0"/>
                                                	<TranslateTransform X="-0.28" Y="-1"/>
                                            	</TransformGroup>
                                        	</RadialGradientBrush.RelativeTransform>
                                       			<GradientStop Color="#FF7AC2FD" Offset="0"/>
                                       			<GradientStop Color="#557888F5" Offset="1"/>
                                    		</RadialGradientBrush>
                                	</Border.Background>
                            	</Border>
							</Grid>
						<Border Name="SelBack" Opacity="0" Grid.RowSpan="2"
									CornerRadius="3" HorizontalAlignment="Stretch" Background="#FF182459"/>
						<Border Name="shineTop"
							CornerRadius="3,3,0,0"
							Grid.Row="0">
								<Border.Background>
				 				<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
		 							<GradientStop Color="#99FFFFFF" Offset="0"/>
									<GradientStop Color="#55FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Border Name="shineBottom"
							CornerRadius="0,0,3,3"
							Grid.Row="1">
							<Border.Background>
		 						<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5, 1">
									<GradientStop Color="#40FFFFFF" Offset="0"/>
									<GradientStop Color="#18FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
					</Grid>
				</Border>
				<ControlTemplate.Triggers>
					<Trigger Property="IsMouseOver" Value="True">
						<Setter TargetName="Glow" Property="Opacity" Value="1"/>
					</Trigger>
					<Trigger Property="IsPressed" Value="True">
						<Setter TargetName="SelBack" Property="Opacity" Value="1"/>
					</Trigger>
				</ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    </Style>

    <Style x:Key="SexButton" TargetType="{x:Type CheckBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type CheckBox}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="MouseEnterAnim">
                            <DoubleAnimation
                                        Storyboard.TargetName="GlowEfx"
                                        Storyboard.TargetProperty="GlowSize"
                                        From="0" To="3" Duration="00:00:00.3000000" />
                        </Storyboard>
                        <Storyboard x:Key="MouseExitAnim">
                            <DoubleAnimation
                                        Storyboard.TargetName="GlowEfx"
                                        Storyboard.TargetProperty="GlowSize"
                                        From="3" To="0" Duration="00:00:00.3000000" />
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" Background="{StaticResource WindowBackground}" BorderBrush="Gray" BorderThickness="0,0,0,1">
                        <Border.BitmapEffect>
                            <OuterGlowBitmapEffect x:Name="GlowEfx" GlowColor="Gray" GlowSize="0"/>
                        </Border.BitmapEffect>
                        <TextBlock Name="Txt" VerticalAlignment="Center" HorizontalAlignment="Center"  Text="Ж"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="Txt" Property="Text" Value="М"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseEnterAnim}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseExitAnim}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="CalendarButton" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid SnapsToDevicePixels="true" x:Name="Chrome">
                        <Rectangle Name="Border" Stroke="Gray" Fill="White" StrokeDashArray="3 4" Margin="0,-1,0,-1" SnapsToDevicePixels="True"/>
                        <Grid Margin="2">
                            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Border" Property="Fill" Value="Orange"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="Border" Property="Fill" Value="Red"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="VisitButton" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Timeline1">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.6"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="Timeline2">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Border x:Name="border" Background="#FFA08080" BorderBrush="Gray" BorderThickness="1" CornerRadius="0">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border Opacity="1" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="0">
                                <Border.Background>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="-0.368" Y="-0.152"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="Red" Offset="0"/>
                                        <GradientStop Color="#55FF8888" Offset="1"/>
                                    </RadialGradientBrush>
                                </Border.Background>
                            </Border>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                            <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="0">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
                            <Setter Property="Background" TargetName="border" Value="#CCAB0000"/>
                            <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" TargetName="border" Value="#FFE2E2E2"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>